<@user.user_html>
    
    <div class="clear"></div>
	

    <div class="swarp">
    	<#-- 嵌入导航-->
		<#include "/WEB-INF/content/include/user/app.ftl">
        <div class="srightwarp">
        	<div class="xwarp" style=" margin:0px; width:750px; overflow:hidden;">
            	<div class="xtitle">
                    <div class="clear"></div>
                </div>
                <div class="xbody sbody" style=" width:748px; margin:0px; padding:20px 0px;">

                    <div class="clear"></div>
                
					<div class="xbody sbody" style=" width:748px; margin:0px; padding:20px 0px;" id="message_list">
	                	<#if (messagePage??&&messagePage.result?size!=0)>
	            		<#list messagePage.result as message>
	            		<div class="secretBox">
	                    	<div class="secretLeft">
	                        	<div>发信人:<#if (message.sender)??>${(message.sender.user.loginName)!}<#else>系统邮件</#if> | 发出日期： ${(message.createDate?string("yyyy-MM-dd"))!}</div>
	                            <h3><#if message.status==1>
	                            		<img src="${base}/images/message/oldmail.gif"/>
	                            	<#else>
	                            		<img src="${base}/images/message/newmessage.gif"/>
	                            	</#if>
	                            	标题:<a href="${base}/user/message/index!show?id=${(message.id?c)!}">${(message.title)!}</a></h3>
	                        </div>
	                        <div class="secretRight">
	                        	<div class="secretImg">
	                            	<em></em> 
	                            </div>
	                            <div class="secretBtn">
	                            	<a href="#" onClick="delMessage(${(message.id?c)!})">删除</a>
	                            </div>
	                        </div>
	                        <div class="clear"></div>
	                    </div>
	                    </#list>
	                    <#else>
	                    	暂无记录
	                    </#if>
						<@user.pagination_user div="message_list" />	
                    	<div class="clear"></div>
            		</div>

            	</div>
            </div>
        </div>
        <div class="clear"></div>
    </div>
<script type="text/javascript">
	function delMessage(id){
		if(window.confirm("你确认删除这条站内信？该操作无法撤销.")){
			window.location.href="${base}/user/message/index!remove?id=" + id;
		}
	}
</script>
</@user.user_html>


